package com.os.osframe.scaffold.domain;

import com.os.osframe.scaffold.util.DomainIDStrategy;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import java.util.Date;

/**
 * Created by wangchun on 16/7/4.
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class AutoConfigModule {
    @XmlAttribute(name="id" )
    protected String pkId;
    @XmlAttribute(name="name" )
    protected String lbName;
    @XmlAttribute(name="package" )
    protected String lbPackage;
    @XmlAttribute(name="info" )
    protected String lbInfo;
    @XmlAttribute(name="order" )
    protected Integer lbOrder;
    @XmlAttribute(name="time" )
    protected String lbUpdateTime;
    /**
     * 初始化数据
     */
    public void init() {
        if (pkId == null) {
            pkId = DomainIDStrategy.strategyID();//自动生成ID
        }
    }
    public String getPkId() {
        if (pkId == null) {
            pkId = DomainIDStrategy.strategyID();//自动生成ID
        }
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getLbName() {
        return lbName;
    }

    public void setLbName(String lbName) {
        this.lbName = lbName;
    }

    public String getLbPackage() {
        return lbPackage;
    }

    public void setLbPackage(String lbPackage) {
        this.lbPackage = lbPackage;
    }

    public String getLbInfo() {
        return lbInfo;
    }

    public void setLbInfo(String lbInfo) {
        this.lbInfo = lbInfo;
    }

    public Integer getLbOrder() {
        return lbOrder;
    }

    public void setLbOrder(Integer lbOrder) {
        this.lbOrder = lbOrder;
    }

    public String getLbUpdateTime() {
        return lbUpdateTime;
    }

    public void setLbUpdateTime(String lbUpdateTime) {
        this.lbUpdateTime = lbUpdateTime;
    }
}
